TranscribeResult

data class TranscribeResult(val text: String, val segments: List<TranscriptSegment> = emptyList(), val warnings: List<CallWarning> = emptyList(), val response: LanguageModelResponseMetadata = LanguageModelResponseMetadata(), val providerMetadata: Map<String, JsonElement> = emptyMap(), val responses: List<LanguageModelResponseMetadata> = listOf(response), val language: String? = null, val durationInSeconds: Float? = null)

Constructors

Link copied to clipboard
constructor(text: String, segments: List<TranscriptSegment> = emptyList(), warnings: List<CallWarning> = emptyList(), response: LanguageModelResponseMetadata = LanguageModelResponseMetadata(), providerMetadata: Map<String, JsonElement> = emptyMap(), responses: List<LanguageModelResponseMetadata> = listOf(response), language: String? = null, durationInSeconds: Float? = null)

Properties

Link copied to clipboard

Total audio duration in seconds, or null if undetermined.

Link copied to clipboard

Detected language as an ISO-639-1 code, or null if undetermined.

Link copied to clipboard
val providerMetadata: Map<String, JsonElement>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard